/**
 * Copyright 2005 The Apache Software Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.edi.utils
{
	/**
	 * 静态变量.供内部使用. 
	 * @author wide
	 * 
	 */	
	public class Constant
	{
		public function Constant()
		{
		}
				
		public static var defaultCSSPath:String = "/kola/style/kola.swf";
		
		public static var debugPage:String = "/kola/debug.html";
		
		public static var debugJS:String=
			"document.insertScript = function (){" + 
				"if(document.setDebugValue==null){"+
				"var win;"+
				"setDebugValue = function(value)" + 
					"{ " + 
						//"alert('value: '+value);" + 
						"if(value!=null)" + 
						"{" + 
							"if(win == null)" + 
							"{" +
								"win=window.open(\""+Constant.debugPage+"\",\"debug\", \"height=100, width=400, toolbar= no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no,top=100,left=300\");" + 
							"}" +
							"try{s=win.document.title;}" + 
							"catch(err){" + 
								"win=window.open(\""+Constant.debugPage+"\",\"debug\", \"height=100, width=400, toolbar= no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no,top=100,left=300\");" + 
							"}" + 
							"win.document.write(value+\"<br/>\");" + 
							"win.document.write(\"----------\"+(new Date()).toLocaleTimeString()+\"----------<br />\");" + 
							"win.document.body.scrollTop=win.document.body.scrollHeight;" + 
							"win.focus();" + 
						"}" + 
					"}}" + 
				"}";
		
	}
}